package cn.example.vip.mall.goods.service;

import cn.example.vip.mall.goods.entity.Brand;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface BrandService extends IService<Brand> {
	/**
	 * 条件查询 by 'like %name%' and 'eq initial'
	 * @param brand
	 * @return
	 */
	List<Brand> queryList(Brand brand);
	
	/**
	 * 分页条件查询
	 */
	Page<Brand> queryPageList(Brand brand, Long pageNow, Long pageSize);
	
	/**
	 * 根据分类ID查询品牌ID
	 * @param categoryId
	 * @return
	 */
	List<Brand> queryByCategoryId(Integer categoryId);
}
